package at.fhhagenberg.mcm09.elevator.model;

public class CallRequest extends StopRequest {


	public CallRequest(int targetFloor, boolean isUpward) {
		super(targetFloor);
	}

	protected boolean isUpward;

	public boolean isUpward() {
		return isUpward;
	}

	public void setUpward(boolean isUpward) {
		this.isUpward = isUpward;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof CallRequest){
			CallRequest other = (CallRequest)obj;
			return targetFloor == other.targetFloor && isUpward == other.isUpward();
		}
		else return false;
	}
}
